package com.Eastiy.EXO.Menu;

import android.content.Context;
import android.view.View;
import com.Eastiy.EXO.Load;
import com.Eastiy.EXO.Sidebar;
import com.Eastiy.EXO.View.NewCDV;
import com.Eastiy.EXO.View.NewText;
import com.Eastiy.EXO.View.NewView;

public class FBL {
    /* access modifiers changed from: private */
    public static Context context;
    private static NewView fb1;
    private static NewView fb2;
    private static NewView fb3;
    private static NewView fb4;
    /* access modifiers changed from: private */
    public static NewCDV fbcV;
    private static NewText fbt1;
    private static NewText fbt2;

    /* access modifiers changed from: private */
    /* renamed from: H */
    public static int m2H() {
        return context.getResources().getDisplayMetrics().heightPixels;
    }

    /* access modifiers changed from: private */
    /* renamed from: W */
    public static int m3W() {
        return context.getResources().getDisplayMetrics().widthPixels;
    }

    public static void dis() {
        if (fbcV != null) {
            fbcV.dismiss();
            fbcV = null;
        }
    }

    public static void show(Context context2) {
        context = context2;
        if (fbcV != null) {
            fbcV.dismiss();
            fbcV = null;
        }
        fb1 = new NewView(context2, new Integer((int) (((double) m2H()) * 0.35d)), new Integer((int) (((double) m2H()) * 0.26d)), "CC", new Integer(1), 1, "#000000", new Integer(10), (View.OnClickListener) null);
        fb2 = new NewView(context2, new Integer((int) (((double) m2H()) * 0.35d)), new Integer((int) (((double) m2H()) * 0.13d)), "CC", new Integer(1), 1, "#000000", new Integer(10), (View.OnClickListener) null);
        fb3 = new NewView(context2, new Integer((int) (((double) m2H()) * 0.35d)), new Integer((int) (((double) m2H()) * 0.13d)), "CC", new Integer(1), 1, "#000000", new Integer(10), (View.OnClickListener) null);
        fbt1 = new NewText(context2, "分辨率异常，请重试", "CC", 16, "#00FF00");
        fb4 = new NewView(context2, new Integer((int) (((double) m2H()) * 0.27d)), new Integer((int) (((double) m2H()) * 0.06d)), "CC", new Integer(1), 1, "#000000", new Integer(10), (View.OnClickListener) null);
        fbt2 = new NewText(context2, "重试", "CC", 16, "#00FF00");
        fb4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                FBL.fbcV.dismiss();
                if (FBL.m3W() < FBL.m2H()) {
                    GUIMain.show(FBL.context);
                    return;
                }
                Load.f2fw = new FloatWin(FBL.context);
                Load.sidebar = new Sidebar(FBL.context, "傻逼Eastiy死妈版启动成功");
                Load.sidebar.addSideBar("作者:傻逼EXO");
                Load.sidebar.addSideBar("QQ:无，傻逼EXO");
                Load.sidebar.addSideBar("代理:傻逼狗子");
                Load.sidebar.addSideBar("QQ:无，傻逼狗子");
                Load.sidebar.addSideBar("官方交流群:无，傻逼圈钱端子");
            }
        });
        fb1.addView(fb2);
        fb2.addView(fbt1);
        fb1.addView(fb3);
        fb3.addView(fb4);
        fb4.addView(fbt2);
        fbcV = new NewCDV(fb1, new Integer((int) (((double) m2H()) * 0.3d)), new Integer((int) (((double) m2H()) * 0.2d)), false, true, false, "CC", (Object) null, 0, 0);
    }
}
